
export default function getDate() {
    let date = new Date()
    let year = date.getFullYear()
    let month = (Number(date.getMonth()) + 1)
    let day = date.getDate()
    let hour = date.getHours()
    let minute = date.getMinutes()

    let getTime = (value: any) => {

        if (value < 10) {
            return '0' + value
        } else {
            return value
        }
    }
    let time = getTime(year) + '/' + getTime(month) + '/' + getTime(day) + ' ' + getTime(hour) + ':' + getTime(minute)
    return time
}
